# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-roguehostapd
_pkgname=roguehostapd
pkgver=1.2.3
pkgrel=3
pkgdesc='Hostapd wrapper for hostapd.'
arch=('x86_64' 'aarch64')
url='https://pypi.org/project/roguehostapd/#files'
license=('MIT')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('d4c15f986d471fd101833d5f44aa447f636dffa476b51b05a9f5c42652138df78728204fc058e6313354ffb54b78ad134a31863ab13a3e14687c765fff99bfcd')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  rm -rf "$pkgdir/usr/lib/python2.7/site-packages/examples"
}

